package com.aaa.config;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @Author Scott
 * @create 2018-07-12 15:19
 * @desc
 **/
@Slf4j
@Data
public class JwtToken extends UsernamePasswordToken {
    private String username;
    private char[] password;

    private String loginType;

    public JwtToken(String username, String password,String loginType) {
        this.username = username;
        this.password = (char[])(password != null ? password.toCharArray() : null);
        this.loginType = loginType;
    }
}
